export default {
	success:function(success,fail,makeData){
		return function(response){
            var data= response.data
            if(data.code == 200){
                success && success(makeData ? makeData(data.data) : data)
            }else{
                fail && fail(data.msg)
            }
			
		}
	},
	error:function(error){
		return function(err){
			error && error(err.response.data.message)			
		}
	}
}